import requests

url='http://172.0.0.1:5000/api/login'
data={
    'username':'admin',
    'pasdword':'123456'
}

res=requests.post(url=url,json=data)
print(res)
print(res.text)